package com.goldcn.sys.service;

import com.goldcn.sys.dao.SysMenuAuthMapper;
import com.goldcn.sys.dao.SysMenuItemMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
@Transactional
public class SysMenuService {
    @Autowired
    SysMenuAuthMapper sysMenuAuthMapper;


    @Autowired
    SysMenuItemMapper sysMenuItemMapper;



    public Object selectMenuItemList(String userId) {

        String orderBy = "addTime";
        String orderType = "desc";
        String orderStr = "";
//        PageHelper.startPage(pageNum, pageSize);//分页初始化
//        Page page = (Page) tableMapper.listByCondition("");
//        PageInfo obj = new PageInfo(page, page.getPages(), page.getTotal());

        Object data = sysMenuItemMapper.listByCondition(userId);
        return data;
    }





}
